.gm-core-ui .button,
.gm-core-ui .button-primary,
.gm-core-ui .button-secondary {
	display: inline-block;
	text-decoration: none;
	font-size: 13px;
	line-height: 26px;
	height: 28px;
	margin: 0;
	padding: 0 10px 1px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	-webkit-appearance: none;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	white-space: nowrap;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-user-select: none;
}

.gm-core-ui button::-moz-focus-inner,
.gm-core-ui input[type="reset"]::-moz-focus-inner,
.gm-core-ui input[type="button"]::-moz-focus-inner,
.gm-core-ui input[type="submit"]::-moz-focus-inner {
	border-width: 0;
	border-style: none;
	padding: 0;
}

.gm-core-ui .button.button-large,
.gm-core-ui .button-group.button-large .button {
	height: 30px;
    line-height: 28px;
    padding: 0 12px 2px;
}

.gm-core-ui .button.button-small,
.gm-core-ui .button-group.button-small .button {
	height: 24px;
	line-height: 22px;
	padding: 0 8px 1px;
	font-size: 11px;
}

.gm-core-ui .button.button-hero,
.gm-core-ui .button-group.button-hero .button {
	font-size: 14px;
	height: 46px;
	line-height: 44px;
	padding: 0 36px;
}

.gm-core-ui .button:active,
.gm-core-ui .button:focus {
	outline: none;
}

.gm-core-ui .button.hidden {
	display: none;
}

.gm-core-ui input[type="reset"],
.gm-core-ui input[type="reset"]:hover,
.gm-core-ui input[type="reset"]:active,
.gm-core-ui input[type="reset"]:focus {
	background: none;
	border: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	padding: 0 2px 1px;
	width: auto;
}

.gm-core-ui .button,
.gm-core-ui .button-secondary {
	color: #555;
	border-color: #cccccc;
	background: #f7f7f7;
	-webkit-box-shadow: 0 1px 0 #cccccc;
	box-shadow: 0 1px 0 #cccccc;
 	vertical-align: top;
}

.gm-core-ui p .button {
	vertical-align: baseline;
}

.gm-core-ui .button.hover,
.gm-core-ui .button:hover,
.gm-core-ui .button-secondary:hover,
.gm-core-ui .button.focus,
.gm-core-ui .button:focus,
.gm-core-ui .button-secondary:focus {
	background: #fafafa;
	border-color: #999;
	color: #23282d;
}

.gm-core-ui .button.focus,
.gm-core-ui .button:focus,
.gm-core-ui .button-secondary:focus,
.gm-core-ui .button-link:focus {
	border-color: #2196F3;
}

.gm-core-ui .button.active,
.gm-core-ui .button.active:hover,
.gm-core-ui .button:active,
.gm-core-ui .button-secondary:active {
	background: #eee;
	border-color: #999;
	-webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
	box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
	-webkit-transform: translateY(1px);
	-ms-transform: translateY(1px);
	transform: translateY(1px);
}

.gm-core-ui .button.active:focus {
	border-color: #5b9dd9;
	-webkit-box-shadow:
		inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
		0 0 3px rgba( 0, 115, 170, .8 );
	box-shadow:
		inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
		0 0 3px rgba( 0, 115, 170, .8 );
}

.gm-core-ui .button[disabled],
.gm-core-ui .button:disabled,
.gm-core-ui .button.disabled,
.gm-core-ui .button-secondary[disabled],
.gm-core-ui .button-secondary:disabled,
.gm-core-ui .button-secondary.disabled,
.gm-core-ui .button-disabled {
	color: #a0a5aa !important;
	border-color: #ddd !important;
	background: #f7f7f7 !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	text-shadow: 0 1px 0 #fff !important;
	cursor: default;
	-webkit-transform: none !important;
	-ms-transform: none !important;
	transform: none !important;
}

.gm-core-ui .button-link {
	margin: 0;
	padding: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	border: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
	background: none;
	outline: none;
	cursor: pointer;
}

.gm-core-ui .button-link:focus {
	outline: #5b9dd9 solid 1px;
}

.gm-core-ui .button-primary {
	background: #0085ba;
	border-color: #0073aa #006799 #006799;
	-webkit-box-shadow: 0 1px 0 #006799;
	box-shadow: 0 1px 0 #006799;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 -1px 1px #006799,
		1px 0 1px #006799,
		0 1px 1px #006799,
		-1px 0 1px #006799;
}

.gm-core-ui .button-primary.hover,
.gm-core-ui .button-primary:hover,
.gm-core-ui .button-primary.focus,
.gm-core-ui .button-primary:focus {
	background: #008ec2;
	border-color: #006799;
	color: #fff;
}

.gm-core-ui .button-primary.focus,
.gm-core-ui .button-primary:focus {
	-webkit-box-shadow: 0 1px 0 #0073aa,
		0 0 2px 1px #33b3db;
	box-shadow: 0 1px 0 #0073aa,
		0 0 2px 1px #33b3db;
}

.gm-core-ui .button-primary.active,
.gm-core-ui .button-primary.active:hover,
.gm-core-ui .button-primary.active:focus,
.gm-core-ui .button-primary:active {
	background: #0073aa;
	border-color: #006799;
	-webkit-box-shadow: inset 0 2px 0 #006799;
	box-shadow: inset 0 2px 0 #006799;
	vertical-align: top;
}

.gm-core-ui .button-primary[disabled],
.gm-core-ui .button-primary:disabled,
.gm-core-ui .button-primary-disabled,
.gm-core-ui .button-primary.disabled {
	color: #66c6e4 !important;
	background: #008ec2 !important;
	border-color: #007cb2 !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
	cursor: default;
}

.gm-core-ui .button.button-primary.button-hero {
	-webkit-box-shadow: 0 2px 0 #006799;
 	box-shadow: 0 2px 0 #006799;
}

.gm-core-ui .button.button-primary.button-hero.active,
.gm-core-ui .button.button-primary.button-hero.active:hover,
.gm-core-ui .button.button-primary.button-hero.active:focus,
.gm-core-ui .button.button-primary.button-hero:active {
	-webkit-box-shadow: inset 0 3px 0 #006799;
 	box-shadow: inset 0 3px 0 #006799;
}

.gm-core-ui .button-group {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	font-size: 0;
	vertical-align: middle;
}

.gm-core-ui .button-group > .button {
	display: inline-block;
	-webkit-border-radius: 0;
	border-radius: 0;
	margin-right: -1px;
	z-index: 10;
}

.gm-core-ui .button-group > .button-primary {
	z-index: 100;
}

.gm-core-ui .button-group > .button:hover {
	z-index: 20;
}

.gm-core-ui .button-group > .button:first-child {
	-webkit-border-radius: 3px 0 0 3px;
	border-radius: 3px 0 0 3px;
}

.gm-core-ui .button-group > .button:last-child {
	-webkit-border-radius: 0 3px 3px 0;
	border-radius: 0 3px 3px 0;
}

.gm-core-ui .button-group > .button:focus {
	position: relative;
	z-index: 1;
}

@media screen and ( max-width: 782px ) {

	.gm-core-ui .button,
	.gm-core-ui .button.button-large,
	.gm-core-ui .button.button-small,
	input#publish,
	input#save-post,
	a.preview {
		padding: 6px 14px;
		line-height: normal;
		font-size: 14px;
		vertical-align: middle;
		height: auto;
		margin-bottom: 4px;
	}

	#media-upload.gm-core-ui .button {
		padding: 0 10px 1px;
		height: 24px;
		line-height: 22px;
		font-size: 13px;
	}

	.media-frame.mode-grid .bulk-select .button {
		margin-bottom: 0;
	}

	.gm-core-ui .save-post-status.button {
		position: relative;
		margin: 0 14px 0 10px;
	}

	.gm-core-ui.wp-customizer .button {
		padding: 0 10px 1px;
		font-size: 13px;
		line-height: 26px;
		height: 28px;
		margin: 0;
		vertical-align: inherit;
	}

	.interim-login .button.button-large {
		height: 30px;
		line-height: 28px;
		padding: 0 12px 2px;
	}

}
